FROM openjdk:8u312-oraclelinux8
ENV LANG=en_US/UTF-8
ENV JAVA_OPTS='-Xms1024M -Xmx1024M -XX:MetaspaceSize=128M -XX:MaxMetaspaceSize=128M'
COPY ./target/demo-0.0.1-SNAPSHOT.jar /opt
WORKDIR /
ENTRYPOINT ["sh", "-c",  "java $JAVA_OPTS -jar /opt/demo-0.0.1-SNAPSHOT.jar"]